/**
 * Created by zlw on 2017/8/9.
 */
import Vue from 'vue';

Vue.directive('state', (el, binding) => {
  el.className = binding.value ? 'green_circle' : 'red_circle';
});

Vue.directive('center', el => {
  el.className += ' table-center';
});

Vue.directive('align', (el, binding) => {
  el.className += binding.value === 'center' ? ' is-center' : '';
});
